<!--
 * @Author: wangshuguang
 * @Date: 2022-05-25 11:00:14
 * @LastEditTime: 2022-06-01 10:43:57
 * @LastEditors: wangshuguang
 * @Description: app拖拽
-->
<template>
  <div class="pcDecorate">
    <el-card class="top-box-card">
      <iframe :src="iframeUrl" frameborder="0" />
    </el-card>
  </div>
</template>

<script>
import { getToken } from '@/utils/auth'
export default {
  data() {
    return {
      iframeUrl: '',
      token: getToken()
    }
  },
  mounted() {
    this.iframeUrl = `${process.env.VUE_APP_WIKI_APP_URL}/#/login?redirect=DragHome&pageType=canEdit&token=${this.token}`
  }
}
</script>

<style lang="scss" scoped="scoped">
.pcDecorate{
  iframe{
    height: calc(100vh - 110px);
    width: 100%;
  }
}
</style>
